package com.info.zhiduoduo.repository.mapper.crm;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.info.zhiduoduo.repository.entity.crm.IntentionPartner;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cuichenglong
 * @since 2020-04-01
 */
public interface IntentionPartnerMapper extends BaseMapper<IntentionPartner> {

    @Select(" SELECT * FROM zdd_crm_intention_partner " +
            " WHERE flag = 1 AND zdd_partner_id = 0 AND partner_state = 1 AND partner_name = #{realName} ")
    List<IntentionPartner> getIntentionPartnerByName(@Param("realName")String realName);

}
